package designpattern.flyweight.hot;

import java.util.HashMap;
import java.util.concurrent.TimeUnit;

public class HotSpotRpcService {

    public R queryHotSpotDataByKey(String key) throws InterruptedException {
        TimeUnit.MILLISECONDS.sleep(1);
        HashMap<String, Object> hashMap = new HashMap<>();
        hashMap.put("title","王思聪当舔狗");
        hashMap.put("content","王思聪和孙一宁的聊天中出现了舔狗情景，“宝，今天输液，输的什么液，想你的夜”");
        return new R(200,"获取成功",hashMap);
    }
}
